package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.DriverRechargeRecord;
import java.util.List;

/**
 * @author Shine
 */
public interface DriverRechargeRecordService {
    /**
     * 根据司机和时间段分页查询数据
     *
     * @param driverid
     * @param start
     * @param end
     * @return
     */
//	public Page<DriverRechargeRecord> queryAll(Long driverid, Date start, Date end);

//	public List<DriverRechargeRecord> listAll(Long driverid);

//	public Page<Map<String, Object>> findRebate(Long driverId,Integer page, Integer limit);

    /**
     * 保存司机充值信息
     *
     * @param driverRechargeRecord
     * @return
     */
//	public DriverRechargeRecord insertRecord(DriverRechargeRecord record);

    /**
     * 根据主键查询司机充值信息
     *
     * @param id
     * @return
     */
//	public DriverRechargeRecord findOne(Long id);

    /**
     * 根据司机分页查询充值信息
     *
     * @param driverId
     * @param page
     * @param limit
     * @return
     */
    public Page<DriverRechargeRecord> rechargeRecord(Long driverId,
        Integer page, Integer limit);

//	public BigDecimal sumByDriverAndType(Long driverId, Integer rechargeTypeRebate);

    public DriverRechargeRecord findByTypeAndOrderId(
        Integer rechargeTypeRebate, Long orderId);

    public List<DriverRechargeRecord> listAll();

}
